﻿<%@ Control Language="C#" AutoEventWireup="false" CodeFile="MyIndexControl.ascx.cs"
    Inherits="UserControl_MyIndexControl" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="asp" %>
<div class="newsbox_noright" >
    <div class="newsbox_noright_header">
        <h4>
            <asp:HyperLink ID="lblTenDanhMuc" runat="server" Text="Mục: " meta:resourcekey="lblTenDanhMucResource1"></asp:HyperLink></h4>
    </div>
    <div class="newsbox_noright_content" >
        <table>
            <tr>
                <td>
                    <table border="0" cellspacing="2" cellpadding="2" width="100%">
                        <tr>
                            <td height="220px" width="350px">
                                <asp:Panel ID="pnlNormal" runat="server" Height="200px" meta:resourcekey="pnlNormalResource1">
                                    <asp:GridView ID="gridVIP" runat="server" AutoGenerateColumns="False" CellPadding="0"
                                        Height="200px" ForeColor="#333333" GridLines="None" Font-Size="X-Small" 
                                        meta:resourcekey="gridNormalResource1" EnableModelValidation="True">
                                        <Columns>
                                            <asp:TemplateField meta:resourcekey="TemplateFieldResource1">
                                                <EditItemTemplate>
                                                    <asp:TextBox ID="TextBox1" runat="server" meta:resourcekey="TextBox1Resource1"></asp:TextBox>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:Image ID="Image1" runat="server" ImageUrl="~/images/hot.gif" Width="25px" meta:resourcekey="Image1Resource1" />
                                                </ItemTemplate>
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="MaTinRaoVat" HeaderText="MaTinRaoVat" ReadOnly="True"
                                                SortExpression="MaTinRaoVat" Visible="False" meta:resourcekey="BoundFieldResource1">
                                                <HeaderStyle Font-Size="X-Large" ForeColor="#990000" />
                                            </asp:BoundField>
                                            <asp:TemplateField HeaderText="Tin VIP" SortExpression="TenTinRaoVat" 
                                                meta:resourcekey="TemplateFieldResource2">
                                                <EditItemTemplate>
                                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("TenTinRaoVat") %>' meta:resourcekey="Label1Resource1"></asp:Label>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("MaTinRaoVat", "~/RaoVat/ChiTietTinRaoVat.aspx?ID={0}") %>'
                                                        Text='<%# Eval("TenTinRaoVat") %>' meta:resourcekey="HyperLink1Resource1"></asp:HyperLink>
                                                </ItemTemplate>
                                                <ControlStyle Width="150px" BackColor="White" />
                                                <HeaderStyle Font-Size="Large" ForeColor="White" Height="40px" 
                                                    BackColor="#666666" Width="120px" />
                                                <ItemStyle Width="150px" />
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="ThoiGianDang" DataFormatString="{0:d}" HeaderText="Ngày đăng"
                                                ReadOnly="True" SortExpression="ThoiGianDang" meta:resourcekey="BoundFieldResource2">
                                                <HeaderStyle Font-Size="Small" Width="50px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="SoLanXem" HeaderText="Số lần xem" ReadOnly="True" SortExpression="SoLanXem"
                                                meta:resourcekey="BoundFieldResource3">
                                                <ControlStyle Width="100px" />
                                                <HeaderStyle Font-Size="Small" Width="50px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                        </Columns>
                                        <EditRowStyle BackColor="#2461BF" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <FooterStyle BackColor="#666666" BorderColor="Black" ForeColor="White" />
                                        <EmptyDataTemplate>
                                            <asp:Label ID="Label2" runat="server" Text="Không tìm thấy"></asp:Label>
                                        </EmptyDataTemplate>
                                        <HeaderStyle BackColor="#666666" BorderColor="Black" ForeColor="White" HorizontalAlign="Center"
                                            VerticalAlign="Middle" Font-Names="Arial" />
                                        <RowStyle BackColor="White" ForeColor="Black" />
                                    </asp:GridView>
                                </asp:Panel>
                            </td>
                            <td height="220px" width="350px">
                                <asp:Panel ID="pnlVIP" runat="server" Height="200px" meta:resourcekey="pnlVIPResource1">
                                   
                                    
                                    <asp:GridView ID="gridNormal" runat="server" AutoGenerateColumns="False" CellPadding="0"
                                        Height="200px" ForeColor="#333333" GridLines="None" Font-Size="X-Small" 
                                        meta:resourcekey="gridNormalResource1" EnableModelValidation="True">
                                        <Columns>
                                            <asp:BoundField DataField="MaTinRaoVat" HeaderText="MaTinRaoVat" ReadOnly="True"
                                                SortExpression="MaTinRaoVat" Visible="False" meta:resourcekey="BoundFieldResource1">
                                                <HeaderStyle Font-Size="X-Large" ForeColor="#990000" />
                                            </asp:BoundField>
                                            <asp:TemplateField HeaderText="Tin Thường" SortExpression="TenTinRaoVat" 
                                                meta:resourcekey="TemplateFieldResource2">
                                                <EditItemTemplate>
                                                    <asp:Label ID="Label1" runat="server" Text='<%# Eval("TenTinRaoVat") %>' meta:resourcekey="Label1Resource1"></asp:Label>
                                                </EditItemTemplate>
                                                <ItemTemplate>
                                                    <asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl='<%# Eval("MaTinRaoVat", "~/RaoVat/ChiTietTinRaoVat.aspx?ID={0}") %>'
                                                        Text='<%# Eval("TenTinRaoVat") %>' meta:resourcekey="HyperLink1Resource1"></asp:HyperLink>
                                                </ItemTemplate>
                                                <ControlStyle Width="150px" />
                                                <HeaderStyle Font-Size="Large" ForeColor="White" Height="40px" Width="150px" />
                                                <ItemStyle Width="150px" />
                                            </asp:TemplateField>
                                            <asp:BoundField DataField="ThoiGianDang" DataFormatString="{0:d}" HeaderText="Ngày đăng"
                                                ReadOnly="True" SortExpression="ThoiGianDang" meta:resourcekey="BoundFieldResource2">
                                                <HeaderStyle Font-Size="Small" Width="50px" />
                                            </asp:BoundField>
                                            <asp:BoundField DataField="SoLanXem" HeaderText="Số lần xem" ReadOnly="True" SortExpression="SoLanXem"
                                                meta:resourcekey="BoundFieldResource3">
                                                <ControlStyle Width="100px" />
                                                <HeaderStyle Font-Size="Small" Width="50px" />
                                                <ItemStyle HorizontalAlign="Center" />
                                            </asp:BoundField>
                                        </Columns>
                                        <EditRowStyle BackColor="#2461BF" HorizontalAlign="Center" VerticalAlign="Middle" />
                                        <FooterStyle BackColor="#666666" BorderColor="Black" ForeColor="White" />
                                        <EmptyDataTemplate>
                                            <asp:Label ID="Label2" runat="server" Text="Không tìm thấy"></asp:Label>
                                        </EmptyDataTemplate>
                                        <HeaderStyle BackColor="#666666" BorderColor="Black" ForeColor="White" HorizontalAlign="Center"
                                            VerticalAlign="Middle" Font-Names="Arial" />
                                    </asp:GridView>
                                </asp:Panel>
                            </td>
                        </tr>
                    </table>
                    <div>
                        <asp:Panel ID="pnlButton" runat="server" meta:resourcekey="pnlButtonResource1">
                        </asp:Panel>
                    </div>
                </td>
            </tr>
        </table>
    </div>
</div>
